//
//  SYCollectionView.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/12.
//  Copyright © 2019年 李文强. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, SYCollectionViewType) {
    SYCollectionViewTypeAll = 0, //刷新数据
    SYCollectionViewTypeWeiKe,//我的微课
    SYCollectionViewTypeMinWenJian,//我的作品
    SYCollectionViewTypeShouCang, //我的收藏
    SYCollectionViewTypeWeiKeTiaoZhuan, //微课页面进来的
    SYCollectionViewTypeNewAddWenJianJia //新建文件夹
};


//刷新数据
typedef void(^SYCollectionViewBlock)(SYCollectionViewType type, SYCollectionModel *model);


@interface SYCollectionView : UIView

@property (assign, nonatomic) SYCollectionViewType stant;

@property (copy, nonatomic) SYCollectionViewBlock block;

@property (assign, nonatomic) BOOL isChar;


@property (copy, nonatomic) NSString *titleName;//标题名字
@property (copy, nonatomic) NSString *typePid;//父类id
@property (copy, nonatomic) NSString *isFrom;//是否从分享来

@property (copy ,nonatomic) void(^chooseZiYuanBlock)(SYCollectionModel *model);

@property (copy ,nonatomic) void(^ShareBtnClickBlock)(SYCollectionModel *model);

/**
 更新坐标传入数据

 @param dataArr 传入数据
 */
- (void)subUpViewArr:(NSMutableArray *)dataArr vc:(UIViewController *)vc WithIsFrom:(NSString *)isFrom;

-(void)setViewIsFrom:(NSString *)isfrom;

@end
